@echo off
set /p choice=please input(1 multicast,  2 multicast and NameServicePort 10999,3 iiop 2809):

set TAO="E:\_proj\_opendds\ACE_wrappers\TAO"

if "%choice%"=="1" (
    echo multicast -m 1
    %TAO%\orbsvcs\Naming_Service\tao_cosnaming.exe -m 1

) else if "%choice%"=="2" (
    echo -m 1 -ORBNameServicePort 10999
     %TAO%\orbsvcs\Naming_Service\tao_cosnaming.exe -m 1 -ORBNameServicePort 10999 

) else if "%choice%"=="3" (
    echo -ORBMulticastDiscoveryEndpoint 224.0.0.3:10999
     %TAO%\orbsvcs\Naming_Service\tao_cosnaming.exe -ORBMulticastDiscoveryEndpoint 224.0.0.3:10999
) else if "%choice%"=="4" (
    echo iiop://localhost:2809
     %TAO%\orbsvcs\Naming_Service\tao_cosnaming.exe -ORBListenEndpoints iiop://localhost:2809
) else (
    echo invalid
)

pause >nul
